package com.labreeze.spring.aop.javaproxy;

import java.lang.reflect.Proxy;

import com.labreeze.spring.aop.easy.IUserService;
import com.labreeze.spring.aop.easy.UserService;

public class TestUserService {

	public static void main(String[] args) {
		
		UserService target=new UserService();
		
		PerformanceHandler handler=new PerformanceHandler(target);
		
		IUserService proxy=(IUserService)Proxy.newProxyInstance(target.getClass().getClassLoader(), target.getClass().getInterfaces(), handler);
		
		proxy.update(2);
		
	}
	
}
